package com.spring.aop.exposeproxy;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;

/**
 * @ClassName AspectJTest
 * @Description
 * @Author suncx
 * @Date 2020/5/16 13:37
 * @Version 1.0
 */
@Aspect
public class AspectJTestService {
    @Pointcut("execution(* com.spring.aop.exposeproxy..*.*(..))")
    public void test() {

    }
    @Before("test()")
    public void beforeTest() {
        System.out.println("AspectJTestService before...");
    }


    @After("@annotation(test)")
    public void afterTest(JoinPoint point, ScxMethodInterceptor test) {
        System.out.println("AspectJTestService after...");
    }

}

